package cz.cuni.mff.ufal.volk.message;

/**
 * Sets ID to a message block. The purpose is unknown.
 * 
 * @author Bartłomiej Etenkowski
 */
public class IdMessage implements Message {
  /**
   * Creates ID message with the given ID.
   * 
   * @param id ID to be used in the message
   */
  public IdMessage(long id) {
    this.id = id;
  }
  
  private final long id;

  @Override
  public String getCommand() {
    return "ID";
  }

  @Override
  public String getParameterString() {
    return Long.toHexString(id);
  }

}
